
// 列表--搜索字段
export const indexSearchData = [
  {
    key: 'deliveryName',
    title: '配送商',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'returnCode',
    title: 'M平台退货订单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'hospitalReturnCode',
    title: '医院退货订单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'time',
    title: '下单时间',
    type: 'time',
    fieldname: ['startTime', 'endTime'],
    attr: {
      style: 'width:533px !important;',
      class: 'daterange',
      type: 'daterange',
      'start-placeholder': '开始月份',
      'end-placeholder': '结束月份',
      'default-time': ['00:00:00', '23:59:59']
    }
  }
]
// 列表页-tab
export const indexTabsArr = [
  { lab: '全部', val: 'null' },
  { lab: '待配送商审核', val: 1 },
  { lab: '待退货', val: 2 },
  { lab: '待配送商收货', val: 3 },
  { lab: '已完成', val: 4 },
  { lab: '已撤消', val: 5 },
  { lab: '已删除', val: 6 }
]
export const orderStatus = {
  1: '待配送商审核',
  2: '待退货',
  3: '待配送商收货',
  4: '已完成',
  5: '已拒绝',
  6: '已撤消'
}
// 列表--列表表头
export const indexTableColumns = [
  { prop: 'returnCode', label: '退货订单编号', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'hospitalReturnCode', label: '采购订单号', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'returnSpecCount', label: '退货品规数', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'returnNum', label: '退货数量', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'deliveryName', label: '配送商', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'returnAmount', label: '退货金额', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'orderStatus', label: '订单状态', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'createdAt', label: '提交时间', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'action', label: '操作', width: 255 }
]

// 详情表单内容
export const baseInfoDic = [
  { key: 'returnCode', title: 'M平台退货订单编号' },
  { key: 'hospitalReturnCode', title: '医院退货订单编号' },
  { key: 'createdAt1', title: 'M平台采购订单编号' },
  { key: 'orderStatus', title: '订单状态', formatter: row => orderStatus[row.orderStatus] },
  { key: 'createdAt', title: ' 订单提交时间' },
  { key: 'deliveryName', title: '配送商' },
  { key: 'detailedAddress', title: '退货地址' },
  { key: 'userName', title: '联系人' },
  { key: 'userPhone', title: '联系电话' },
  { key: 'remark', title: '退货原因' }
]

// 详情 -  表格
export const detailColumns = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'deliveryProductCode', label: '平台编码', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'deliveryProductName', label: '平台产品名称', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'specification', label: '平台产品规格', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'productType', label: '平台产品型号', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'manufacturer', label: '生产厂家', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'registrationNumber', label: '注册证号（或备案号）', minWidth: 180, showTooltipWhenOverflow: true },
  { prop: 'price', label: '单价', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'returnNum', label: '退货数量/单位', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'detailAmount', label: '小计金额', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'entryNumf', label: '医院产品编码', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'entryNumf', label: '医院产品名称', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'entryNumf', label: '医院产品规格', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'entryNumf', label: '医院产品型号', minWidth: 150, showTooltipWhenOverflow: true }
]
